package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbShopFavorite generated by hbm2java
 */
@Entity
@Table(name = "tb_shop_favorite", catalog = "shopc")
public class ShopFavorite extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private ShopFavoriteId id;
	private Date fvtTime;

	public ShopFavorite() {
	}

	public ShopFavorite(ShopFavoriteId id, Date fvtTime) {
		this.id = id;
		this.fvtTime = fvtTime;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "shopId", column = @Column(name = "shop_id", nullable = false)),
			@AttributeOverride(name = "userId", column = @Column(name = "user_id", nullable = false)) })
	public ShopFavoriteId getId() {
		return this.id;
	}

	public void setId(ShopFavoriteId id) {
		this.id = id;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "fvt_time", nullable = false, length = 19)
	public Date getFvtTime() {
		return this.fvtTime;
	}

	public void setFvtTime(Date fvtTime) {
		this.fvtTime = fvtTime;
	}

	@Override
	public String toString() {
		return "ShopFavorite [id=" + id + ", fvtTime=" + fvtTime + "]";
	}

}
